# 钟奕升
# 课堂练习20240329
i = 0
while i < 101:
    print(i)
    i = i + 1
for i in range(5, 1):
    print(i)
for i in range(1, 10):
    for j in range(1, i+1):
        print(i, "*", j, "=", i*j, "", end=" ")
    print()
print('-----------找出100以内的所有素数----------')
count = 0  # 计数器，5的倍数则打印换行
for n in range(1, 101, 2):
    flag = 1  # 标志位 ， 1表示找到素数
    for m in range(2, n):
        if n % m == 0:  # 任何m能把n整除，则n不是素数
            flag = 0
            break
    if flag == 1:
        print("%5d" % n, end=" ")
        count += 1
        if count % 5 == 0:
            print()

print()
print("以上是100以内的所有素数")
print("The end")

